﻿using B.S.InOut.ApiEnums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.InOut.ErrorCode
{
    // <summary>
    /// 分页请求模型
    /// </summary>
    public class ApiPaging
    {
        /// <summary>
        /// 当前页码，默认为1
        /// </summary>
        public int PageNumber { get; set; } = 1;

        /// <summary>
        /// 每页记录数，默认为10
        /// </summary>
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 排序字段
        /// </summary>
        public string? SortBy { get; set; }

        /// <summary>
        /// 是否升序
        /// </summary>
        public bool IsAscending { get; set; } = true;
    }
}
